package org.exez.modules.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.exez.modules.visitor.service.IXdPeopleService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 西店数据同步
 *
 * @Author Scott
 */
@Slf4j
public class UpdateExternalDataJob implements Job {
	@Autowired
	private IXdPeopleService xdPeopleService;

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

		log.info("=============西店数据同步开始======================");
		xdPeopleService.updateExternalData();

		log.info("=============西店数据同步结束======================");
	}
}
